package live.zs.multipart;

import jakarta.ws.rs.FormParam;
import jakarta.ws.rs.core.MediaType;
import org.jboss.resteasy.annotations.providers.multipart.PartType;

import java.io.InputStream;

/**
 * @author madison
 * @description
 * @date 2022/2/4 15:54
 */
public class MultipartBody {
    @FormParam("file")
    public InputStream file;

    @FormParam("fileName")
    @PartType(MediaType.TEXT_PLAIN)
    public String fileName;
}
